Skip to content

fix: run-tests script with xdebug version >= 3.0.0#6022

Merged
matyhtf merged 1 commit into
swoole:6.1from
santysisi:fix/run-test-with-xdebug-version-3
Jun 26, 2026
Merged

fix: run-tests script with xdebug version >= 3.0.0#6022
matyhtf merged 1 commit into
swoole:6.1from
santysisi:fix/run-test-with-xdebug-version-3

Conversation

@santysisi

Copy link
Copy Markdown

Fix Xdebug configuration for versions 3.0+

When running ./start.sh with Xdebug 3 or higher, the test suite fails with the following error:

[BORK] Xdebug: [Config] The setting 'xdebug.default_enable' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.default_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED)

According to the Xdebug upgrade guide:
https://xdebug.org/docs/upgrade_guide#Changed-Configuration-Settings

The configuration setting has changed in Xdebug 3.

This PR updates the configuration used by the test environment so that when Xdebug version 3.0.0 or higher is detected, xdebug.mode=off is used instead of xdebug.default_enable=0.

This prevents the configuration warning and allows the test suite to run normally.

@matyhtf matyhtf merged commit 404aa17 into swoole:6.1 Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants